package cn.stimd.spring.transaction.support;

import cn.stimd.spring.transaction.TransactionStatus;

/**
 * Created by Stimd
 * 项目地址：https://gitee.com/stimd/spring-wheel
 * 公众号：Java编程探微
 */
public abstract class AbstractTransactionStatus implements TransactionStatus {
    private boolean completed = false;

    @Override
    public boolean isCompleted() {
        return this.completed;
    }

    public void setCompleted(){
        this.completed = true;
    }

    public boolean isGlobalRollbackOnly() {
        return false;
    }
}
